<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WhittleList.Models.MainDashboard>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Main
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="TopContent" runat="server">
        <h2>Main - Dashboard</h2>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


    <%
        if (Model.Site != null)
        {
    %>
    <div class="colTwo">
        <h3>Your Site</h3>
        <p>Yout site is <%= Html.Encode(Model.Site.Name) %></p>
    </div>
    <%
        }
        else
        {
    %>
    <div>
        <p>You dont have your own WhittleList site currently.</p>
        <% Html.RenderPartial("~/Views/Site/SetUpControl.ascx", new Site(){Url = this.ViewContext.HttpContext.Request.GetPotentialUrl()}); %>
    </div>
    <%
        }
    %>
    
</asp:Content>
